package com.itheima.service.ums;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.core.PageInfo;
import com.itheima.pojo.ums.UmsAdmin;
import com.itheima.pojo.ums.UmsRole;
import com.itheima.pojo.ums.vo.LoginParamVo;
import com.itheima.pojo.ums.vo.UmsAdminVo;
import com.itheima.pojo.ums.vo.UpdatePasswordVo;

import java.util.List;

public interface UmsAdminService extends IService<UmsAdmin> {
    /**
     * 登录以后返回token
     *
     * @param loginParamVo
     * @return
     */
    String login(LoginParamVo loginParamVo);

    /**
     * 获取当前登录用户信息
     * @param name
     * @return
     */
    UmsAdminVo info(String name);

    /**
     * 登出功能
     */
    //void logout();

    PageInfo pageList(String keyWord, int pageNum, int pageSize);

    List<UmsRole> getRoles(Long adminId);

    void roleUpdate(Long adminId, List<Long> roleIds);

    void updateAdmin(Long id, UmsAdmin umsAdmin);

    void updateStatus(Long id, Integer status);

    UmsAdmin getUmsAdminInfo(Long id);


    void updatePassword(UpdatePasswordVo updatePasswordVo);

    void delete(Long id);
}
